﻿package com.toncen.samepms.system.domain;

import java.util.Date;

import com.toncen.samepms.common.AbstractDomain;
import com.toncen.samepms.common.IOperatingUnlogable;
import com.sky.dataimport.DynamicCellDataCell;
import com.sky.dataimport.DynamicCellDataRow;
import com.sky.dataimport.DynamicRowDataCell;
import com.sky.dataimport.DynamicRowDataRow;
import com.sky.dataimport.StaticDataCell;
import com.sky.dataimport.StaticDataRow;
import com.sky.dataimport.datatype.DateDataType;
import com.sky.dataimport.formater.UtilDateDataFormater;
 
/**
 * 描述：错误日志表S_ERROR的domain文件
 * 
 * @author zq 
 */
@DynamicRowDataRow(title = "动态行错误日志", sheetIndex = 1, startRowIndex = 2, startCellIndex = 1, inserted = false)
@DynamicCellDataRow(title = "动态列错误日志", sheetIndex = 1, startRowIndex = 2, startCellIndex = 2, inserted = false)
@StaticDataRow(title = "静态行列错误日志", sheetIndex = 1)
public class ErrorLogger extends AbstractDomain implements IOperatingUnlogable{
	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 1339742111136L;
	
	/**
	 * 错误发生时间
	 */ 
	@StaticDataCell(rowIndex = 1, cellIndex = 1, title = "错误发生时间")
	@DynamicRowDataCell(cellIndex = 1, title = "错误发生时间", formater = UtilDateDataFormater.class, option = "yyyy-MM-dd", require = false)
	@DynamicCellDataCell(rowIndex = 1, title = "错误发生时间", formater = UtilDateDataFormater.class, option = "yyyy-MM-dd", require = false)
	@DateDataType
	private  Date happenTime; 	 
    
	/**
	 * 处理页面URL
	 */ 
	@StaticDataCell(rowIndex = 2, cellIndex = 2, title = "处理页面URL")
	@DynamicRowDataCell(cellIndex = 2,  title = "处理页面URL", require = false)
	@DynamicCellDataCell(rowIndex = 2,  title = "处理页面URL", require = false)
	private  String handlerUrl; 	 
    
	/**
	 * 提交页面URL
	 */ 
	@StaticDataCell(rowIndex = 3, cellIndex = 3, title = "提交页面URL")
	@DynamicRowDataCell(cellIndex = 3,  title = "提交页面URL", require = false)
	@DynamicCellDataCell(rowIndex = 3,  title = "提交页面URL", require = false)
	private  String refererUrl; 	 
    
	/**
	 * 客户端IP
	 */ 
	@StaticDataCell(rowIndex = 4, cellIndex = 4, title = "客户端IP")
	@DynamicRowDataCell(cellIndex = 4,  title = "客户端IP", require = false)
	@DynamicCellDataCell(rowIndex = 4,  title = "客户端IP", require = false)
	private  String clientIp; 	 
    
	/**
	 * 参数
	 */ 
	@StaticDataCell(rowIndex = 5, cellIndex = 5, title = "参数")
	@DynamicRowDataCell(cellIndex = 5,  title = "参数", require = false)
	@DynamicCellDataCell(rowIndex = 5,  title = "参数", require = false)
	private  String parameter; 	 
    
	/**
	 * 类别
	 */ 
	@StaticDataCell(rowIndex = 6, cellIndex = 6, title = "类别")
	@DynamicRowDataCell(cellIndex = 6,  title = "类别", require = false)
	@DynamicCellDataCell(rowIndex = 6,  title = "类别", require = false)
	private  String errorType; 	 
    
	/**
	 * 堆栈
	 */ 
	@StaticDataCell(rowIndex = 7, cellIndex = 7, title = "堆栈")
	@DynamicRowDataCell(cellIndex = 7,  title = "堆栈", require = false)
	@DynamicCellDataCell(rowIndex = 7,  title = "堆栈", require = false)
	private  String stacktrace; 	 
    

	public ErrorLogger() {
		super();
	}

	/**
	 * @return the  happenTime
	 */
	public  Date getHappenTime() {
		return  happenTime;
	}

	/**
	 * @param  happenTime
	 *            the  happenTime to set
	 */
	public void setHappenTime( Date  happenTime) {
		this. happenTime =  happenTime;
	}
	
	/**
	 * @return the  handlerUrl
	 */
	public  String getHandlerUrl() {
		return  handlerUrl;
	}

	/**
	 * @param  handlerUrl
	 *            the  handlerUrl to set
	 */
	public void setHandlerUrl( String  handlerUrl) {
		this. handlerUrl =  handlerUrl;
	}
	
	/**
	 * @return the  refererUrl
	 */
	public  String getRefererUrl() {
		return  refererUrl;
	}

	/**
	 * @param  refererUrl
	 *            the  refererUrl to set
	 */
	public void setRefererUrl( String  refererUrl) {
		this. refererUrl =  refererUrl;
	}
	
	/**
	 * @return the  clientIp
	 */
	public  String getClientIp() {
		return  clientIp;
	}

	/**
	 * @param  clientIp
	 *            the  clientIp to set
	 */
	public void setClientIp( String  clientIp) {
		this. clientIp =  clientIp;
	}
	
	/**
	 * @return the  parameter
	 */
	public  String getParameter() {
		return  parameter;
	}

	/**
	 * @param  parameter
	 *            the  parameter to set
	 */
	public void setParameter( String  parameter) {
		this. parameter =  parameter;
	}
	
	/**
	 * @return the  errorType
	 */
	public  String getErrorType() {
		return  errorType;
	}

	/**
	 * @param  errorType
	 *            the  errorType to set
	 */
	public void setErrorType( String  errorType) {
		this. errorType =  errorType;
	}
	
	/**
	 * @return the  stacktrace
	 */
	public  String getStacktrace() {
		return  stacktrace;
	}

	/**
	 * @param  stacktrace
	 *            the  stacktrace to set
	 */
	public void setStacktrace( String  stacktrace) {
		this. stacktrace =  stacktrace;
	}
	
}
